package mc.bus;

import java.util.List;

import mc.dao.UslugaManagerDAOHb;
import mc.domain.Usluga;

public class BazaUslug implements IBazaUslug {

	private UslugaManagerDAOHb uslugamanagerdao;	
	
	public void deleteUsluga(Usluga u) {
		uslugamanagerdao.deleteUsluga(u);
	}

	public List getAllUslugi() {
		return uslugamanagerdao.getAllUslugi();
	}

	public Usluga getUslugaById(int id) {
		return uslugamanagerdao.getUslugaById(id);
	}

	public void saveUsluga(Usluga u) {
		uslugamanagerdao.saveUsluga(u);
	}

	public UslugaManagerDAOHb getUslugamanagerdao() {
		return uslugamanagerdao;
	}

	public void setUslugamanagerdao(UslugaManagerDAOHb uslugamanagerdao) {
		this.uslugamanagerdao = uslugamanagerdao;
	}

	public void deleteUsluga(int id) {
		uslugamanagerdao.deleteUsluga(id);
		
	}

}
